using UnityEngine;
using UnityEngine.UI;

public class GetTranslatedText : MonoBehaviour
{
	public string sectionName = string.Empty;

	private void Awake()
	{
		SetPanelText();
	}

	public void SetPanelText()
	{
		LanguageController instance = LanguageController.instance;
		if (instance != null)
		{
			string stringWithNewLines = instance.GetStringWithNewLines(sectionName);
			base.gameObject.GetComponent<Text>().text = stringWithNewLines;
		}
	}
}
